package com.example.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {
    //人员模块错误码
    ErrorCode REGISTER_INFO_EMPTY = new ErrorCode(100,"用户信息为空");
    ErrorCode MAIL_ERROR = new ErrorCode(101,"邮箱格式错误");
    ErrorCode PHONE_NUMBER_ERROR = new ErrorCode(102,"手机号格式错误");
    ErrorCode IDENTITY_ERROR = new ErrorCode(103,"身份错误");
    ErrorCode PASSWORD_IS_EMPTY = new ErrorCode(104,"密码为空");
    ErrorCode PASSWORD_ERROR = new ErrorCode(105,"密码错误");
    ErrorCode MAIL_USED = new ErrorCode(106,"邮箱已注册");
    ErrorCode PHONE_NUMBER_USED = new ErrorCode(107,"手机号已注册");
    ErrorCode LOGIN_INFO_NOT_EXIST = new ErrorCode(108,"登录信息不存在");
    ErrorCode User_INFO_NOT_EXIST = new ErrorCode(109,"账号不存在");
    ErrorCode VERIFICATION_ERROR = new ErrorCode(110,"验证码错误");
    ErrorCode LOGIN_NOT_EXIST = new ErrorCode(111,"登录方式不存在");
    ErrorCode USERID_IS_EMPTY = new ErrorCode(112,"用来删除的传递的userId为空");
    ErrorCode USERID_IS_NOT_EXIST = new ErrorCode(113,"选择删除的人员不存在");
    ErrorCode DELETE_USER_FALSE = new ErrorCode(114,"当前用户或活动正在进行抽奖,无法删除!");

    //活动模块错误码
    ErrorCode CREATE_ACTIVITY_INFO_EMPTY = new ErrorCode(200,"创建的活动信息为空");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(201,"活动关联人员异常");
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(202,"活动关联奖品异常");
    ErrorCode USER_PRIZE_AMOUNT_ERROR = new ErrorCode(203,"奖品数量冗余");
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR = new ErrorCode(204,"活动奖品等级设置错误");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(205,"状态转换失败");
    ErrorCode CACHE_ACTIVITY_ID_IS_NULL = new ErrorCode(206,"缓存活动的活动Id为空");
    ErrorCode CACHE_ACTIVITY_ID_IS_ERROR = new ErrorCode(207,"缓存活动的活动Id有误");

    //奖品模块错误码
    ErrorCode DELETE_ID_IS_EMPTY = new ErrorCode(300,"选择删除的prizeId为空");
    ErrorCode DELETE_ID_IS_NOT_EXIST = new ErrorCode(301,"选择删除的prizeId为空");
    ErrorCode DELETE_PRIZE_FALSE = new ErrorCode(302,"当前奖品或活动正在进行抽奖,无法删除!");


    //抽奖错误码
    ErrorCode ACTIVITY_OR_PRIZE_IS_EMPTY = new ErrorCode(400,"抽奖活动或关联奖品不存在");
    ErrorCode ACTIVITY_COMPLETED = new ErrorCode(401,"抽奖活动已完成,无法抽奖");
    ErrorCode ACTIVITY__PRIZE_COMPLETED = new ErrorCode(402,"当前奖品已被抽取,无法二次抽取");
    ErrorCode ACTIVITY__PRIZE_AMOUNT_ERROR = new ErrorCode(403,"中奖人数与设置奖品的数量不一致,无法抽奖");

    //图片错误码
    ErrorCode PIC_UPLOAD_FAIL = new ErrorCode(500,"图片上传失败");
}
